<?php
error_reporting(0);
include_once '../comm/config.php';
include_once '../comm/wjt.php';
include_once '../comm/checkpostandget.php';
$tag="center";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title><?php echo WEBTITLE?> - 用户登录</title>
<link href="../css/usercss.css" rel="stylesheet" type="text/css">
<link href="../template/<?=MOBAN?>/css/common.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../js/jquery.js"></script>
<script language="javascript" type="text/javascript">
function checkpass(password)
{
    	if(password.length==0)
		{
			document.getElementById("ckpass").innerHTML = '<img src=../images/cuo.gif alt="错误" align=absmiddle /> <font color=#ff0000>请输入密码</font>';
		}
		else
		{
			document.getElementById("ckpass").innerHTML = '';
		}
}  
function checkusername(username)
{
    	if(username.length==0)
		{
			document.getElementById("ckusername").innerHTML = '<img src=../images/cuo.gif alt="错误" align=absmiddle /> <font color=#ff0000>请输入用户名</font>';
		}
		else
		{
			document.getElementById("ckusername").innerHTML = '';
		}
}
function checkall()
{
	if(document.getElementById("username").value==""||document.getElementById("password").value=="")
	{
		return false;
	}
	else
	{
		return true;
	}
}  
</script>

</head>

<body>
<?php
include("../template/".MOBAN."/header.tpl.php");
?>
<?php
include("../template/".MOBAN."/nav.tpl.php");
?>
<div class="clear"></div>
<div id="maincenter">
	<div id="maincenterleft"><b class="bigredtext">&nbsp;&nbsp;本站声明文件：</b><br />
&nbsp;&nbsp;&nbsp;&nbsp;1、所有提供的所有商品均通过全国有名的商城，如淘宝网（www.taobao.com）进行交易，本网站只提供相关的链接和推广，所以不承担商品的质量及售后服务；<br />
&nbsp;&nbsp;&nbsp;&nbsp;2、本站不涉及网络支付等问题，所有商品购买最终都通过淘宝网及支付宝平台，故不存在账号泄露等问题，请买家放心；<br />
&nbsp;&nbsp;&nbsp;&nbsp;3、所有通过本站购买商品的买家均可获得一定现金金额的返还，该现金来自<?php echo WEBTITLE ?>帮助淘宝推广的佣金，所以能保证返还部分的兑现；<br />
&nbsp;&nbsp;&nbsp;&nbsp;4、当您在本站的账户金额达到10元时，购物兔将自动给您返现，请大家正确设置支付宝账号和手机账号。
<br />
<strong>&nbsp;&nbsp;&nbsp;&nbsp;</strong>最后，<?php echo WEBTITLE ?>祝大家购物愉快！</span><br /></div>
	<div id="maincenterright"><div style=" margin-bottom:20px; margin-left:20px;"><img src="../template/<?php echo MOBAN ?>/images/logo.gif" /></div><form id="form1" name="form1" method="post" action="checklogin.php" onsubmit="return checkall()"><table width="334" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="62" height="40" align="right">&nbsp;&nbsp;用户名 *</td>
                      <td width="136" height="40"><input name="username" type="text" class="ddinput" onblur="checkusername(document.getElementById('username').value);" value="" size="20" id="username" maxlength="20" style="width:120px;" />                      </td>
                      <td width="118" height="40" id="ckusername">请输入用户名</td>
                    </tr>
                    <tr>
                      <td height="40" align="right">密&nbsp;&nbsp;&nbsp;&nbsp;码 * </td>
                      <td height="40"><input name="password" type="password" class="ddinput" id="password" onblur="checkpass(document.getElementById('password').value);" value="" size="20" maxlength="20" style="width:120px;" />                      </td>
                      <td height="40" id="ckpass">请输入密码</td>
                    </tr>
                    <tr>
                      <td height="40">&nbsp;</td>
                      <td height="40" colspan="2"><input type="submit" name="Submit" value=" 登 录 " class="ddbutton" />
                      &nbsp;&nbsp;<a href="register.php" class="redlink">注册新用户</a> &nbsp;&nbsp;<a href="getpassword.php" class="redlink">找回密码</a></td>
                    </tr>
                  </table>
                  <input type="hidden" name="from" value="<?=$_GET['url']?>" />
                  </form>
	</div>	
</div>		  
<?php
include("../template/".MOBAN."/footer.tpl.php");
?>
</body>
</html>
